<!DOCTYPE html>
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="css/search.css"/>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>搜索</title>
	</head>
	<body>
		<div class="web">
			<!--头部-->
			<div class="search_head">
				<div class="search_input">
					<img src="img/loadding/fangdajing.png" />
					<input type="text" value="" placeholder="search" autofocus="autofocus" />
				</div>
				<span><a href="index.html">取消</a></span>
			</div>
			<!--小方块-->
			<div class="xiaofangkuai">
				<p>热搜</p>
				<div class="xiaofangkuai1">
					<div class="xfk"><a href="#">项目管理</a></div>
					<div class="xfk"><a href="#">移动互联网</a></div>
					<div class="xfk"><a href="#">O2O联转化</a></div>
					<div class="xfk"><a href="#">O2O</a></div>
					<div class="xfk"><a href="#">媒介平台</a></div>
					<div class="xfk"><a href="#">细分平台业务</a></div>
					<div class="xfk"><a href="#">移动互联网</a></div>
					<div class="xfk"><a href="#">项目管理</a></div>
					<div class="xfk"><a href="#">O2O联转化</a></div>
				</div>
			</div>
		</div>
		
		
		<script>
			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 640) + 'px';
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false); //添加监听事件
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>
	</body>
</html>
